<script language="javascript" src="../../plug-in/PopCalender/popcalendar.js"></script> 
<script Language="JavaScript">dateformat='yyyy-mm-dd'</script>
<script language="javascript" src="../../plug-in/area/myjsframe.js"></script>
<script language="javascript" src="../../plug-in/area/area.js"></script>
<div class="ccc2">
	<ul>
		<li>
			<span class="right"><input type="button" onClick="javascript:history.back();" value="返回资料列表" class="gray mini"></span>
			当前位置：编辑用户资料
	 </li>
	</ul>
</div>
<form name="form1" id="form1" onsubmit="return checkform()" action="?page=<?{$get.page}?>" method="post" enctype="multipart/form-data">
<div id="biweb">
<table class="biweb" align="center" cellspacing="0">
	<tr class="firstr">		
		<td colspan="3">编辑用户：</td> 
	</tr>	
	<tr>
		<td width="15%">用户名称：</td>	
		<td width="40%"><input type="text" size=30 name="user_name" value="<?{$arrData.user_name}?>" /></td>		
		<td class="gray">用户的注册名称</td>
	</tr>
	<tr>
		<td width="10%">用户密码：</td>	
		<td width="40%">
		<input type="text" name="password"  size=30 value="<?{$arrData.password}?>" />
		<input type="hidden" name="oldpassword" size=30 value="<?{$arrData.password}?>" />
			</td>
		<td class="gray">用户的注册密码</td>
	</tr>	
	<tr>
		<td width="10%">真实姓名：</td>	
		<td width="40%">
			<input type="text" name="real_name" size=30 value="<?{$arrData.real_name}?>" />
		</td>		
		<td class="gray">用户的真实姓名</td>
	</tr>
	<tr>
		<td width="10%">用户群组：</td>	
		<td width="40%">
			<select name="user_group">			
			<option value="3" <?{if $arrData.user_group == 3}?>selected=selected class="selected"<?{/if}?>>超级管理员</option>
			<option value="2" <?{if $arrData.user_group == 2}?>selected=selected class="selected"<?{/if}?>>后台管理员</option>
			<option value="1" <?{if $arrData.user_group == 1}?>selected=selected class="selected"<?{/if}?>>会员管理员</option>
			<option value="0" <?{if $arrData.user_group == 0}?>selected=selected class="selected"<?{/if}?>>注册会员</option>
			</select>
		</td>		
		<td class="gray">超级管理员拥有最高权限,后台管理员仅能管理后台部分栏目,会员管理员仅能管理前台部分栏目,注册会员仅能管理自己发布的信息</td>
	</tr>
	<tr>
		<td width="10%">用户权限：</td>	
		<td width="40%">
		<?{html_checkboxes name='user_popedom' options=$arrGMeta selected=$arrData.user_popedom separator=' '}?>
		</td>	
		<td class="gray">超级管理员,可以不用勾选,勾选将赋予后台管理员对应栏目权限</td>
	</tr>
	<tr>
		<td width="10%">用户等级：</td>	
		<td width="40%">
			<select name="user_grade">			
			<option value="0" <?{if $arrData.user_grade == 0}?>selected=selected class="selected"<?{/if}?>>无</option>
			<option value="1" <?{if $arrData.user_grade == 1}?>selected=selected class="selected"<?{/if}?>>★</option>
			<option value="2" <?{if $arrData.user_grade == 2}?>selected=selected class="selected"<?{/if}?>>★★</option>
			<option value="3" <?{if $arrData.user_grade == 3}?>selected=selected class="selected"<?{/if}?>>★★★</option>
			<option value="4" <?{if $arrData.user_grade == 4}?>selected=selected class="selected"<?{/if}?>>★★★★</option>
			<option value="5" <?{if $arrData.user_grade == 5}?>selected=selected class="selected"<?{/if}?>>★★★★★</option>
			</select>
		</td>	
		<td class="gray">用户等级</td>
	</tr>
	<tr>
		<td width="10%">用户积分：</td>	
		<td width="40%">
			<input type="text" name="user_bonus" value="<?{$arrData.user_bonus}?>">
		</td>	
		<td class="gray">用户积分</td>
	</tr>
	<tr>
		<td width="10%">会员类型</td>	
		<td width="40%"><select name="pay">
			<option value="0" <?{if $arrData.pay == "0"}?>selected=selected class="selected"<?{/if}?>>普通会员</option>
			<option value="1" <?{if $arrData.pay == "1"}?>selected=selected class="selected"<?{/if}?>>付费会员</option>
		</select></td>		
		<td class="gray">付费会员请填写下面的付费会员起止日期，过期后付费会员变为普通会员；普通会员不用填写</td>
	</tr>
	<tr>
		<td>开始时间：</td>
		<td>
			<input type="text" name="paydate" value="<?{$arrData.paydate}?>">
			<input TYPE="button" value="" onclick='popUpCalendar(this, form1.paydate, dateformat,-1,-1,true)' style="background-image:url(../../plug-in/PopCalender/img/Button.gif);width:25px;height:17px;border:0px;padding:0px;">
		</td>
		<td><span class=gray>修改付费会员开始时间</span></td>
	</tr>
	<tr>
		<td>结束时间：</td>
		<td>
			<input type="text" name="overdate" value="<?{$arrData.overdate}?>">
			<input TYPE="button" value="" onclick='popUpCalendar(this, form1.overdate, dateformat,-1,-1,true)' style="background-image:url(../../plug-in/PopCalender/img/Button.gif);width:25px;height:17px;border:0px;padding:0px;">
		</td>
		<td><span class=gray>修改付费会员结束时间</span></td>
	</tr>
	<tr>
		<td width="10%">用户类型</td>	
		<td width="40%"><select name="user_type">
			<option value="0" <?{if $arrData.user_type == "0"}?>selected=selected class="selected"<?{/if}?>>普通用户</option>
			<option value="1" <?{if $arrData.user_type == "1"}?>selected=selected class="selected"<?{/if}?>>验证用户</option>
		</select></td>		
		<td class="gray">用户类型分为普通用户和验证用户</td>
	</tr>
	<tr>
		<td width="10%">所在区域：</td>	
		<td width="60%"><script type="text/javascript">	
    	var area = new AreaCtrl("省份:","城市:","地区:");
		area.value = <?{if $arrData.area != ""}?><?{$arrData.area}?><?{else}?><?{$arrData.city|default:"310100"}?><?{/if}?>;
		area.name = ["province","city","area"];
		area.write();
    </script></td>	
		<td class="gray">用户注册公司所在区域</td>
	</tr>
	<tr>
		<td width="10%">公司中文</td>	
		<td width="40%"><input type="text" size=50 name="company_cn" value="<?{$arrData.company_cn}?>" /></td>
		<td class="gray">用户注册公司的中文名称</td>
	</tr>
	<tr>
		<td width="10%">公司英文</td>	
		<td width="40%"><input type="text" size=50 name="company_en" value="<?{$arrData.company_en}?>" /></td>
		<td class="gray">用户注册公司的英文名称</td>
	</tr>
	<tr id=ArticleContent>
		<td>公司简介：</td>
		<td colspan=2>
		<?{if $smarty.session.browser.0 == 'ie'}?>
		<input type=hidden name=intro value="<?{$arrData.intro|htmlspecialchars|stripslashes}?>"> <iframe id=eWebEditor1 
		  src="../../plug-in/eWebEditor/ewebeditor.htm?id=intro&style=light" frameBorder=0 width=600 scrolling=no 
		  height=350></iframe>
		<?{else}?>
		<input id=content style="DISPLAY: none" type=hidden name="intro" value="<?{$arrData.intro|htmlspecialchars|stripslashes}?>"> 
		<input id=content___Config style="DISPLAY: none" type=hidden> 
		<iframe id=content___Frame src="../../plug-in/fckeditor/editor/fckeditor.html?InstanceName=intro&Toolbar=ArthurXF" frameBorder=0 width=600 scrolling=no height=350> 
		</iframe>
		<?{/if}?>
		<span style="color:#808080;">公司介绍</span>
		</td>
	</tr>
	<tr>
		<td>身份证件：</td>
		<td colspan=2>
			<input maxLength=50 id="Filedata0" size=55 type=file value="上 传" name="Filedata0" onchange='previewpic(this,0,1)'>
				<div id="tip0" class=red>
					<span class=gray>公司法人的身份证件电子扫描图片</span>
				</div>
				<div id="preview0">
					<?{if $arrData.photo0 != ""}?>
						<img src="<?{$FileCallPath}?>b/<?{$arrData.photo0}?>" boder="1" onload="resizepic(this,600)">
					<?{/if}?>
				</div>
		</td>
	</tr>
	<tr>
		<td>公司执照：</td>
		<td colspan=2>
			<input maxLength=50 id="Filedata1" size=55 type=file value="上 传" name="Filedata1" onchange='previewpic(this,0,1)'>
				<div id="tip0" class=red>
					<span class=gray>公司的营业执照电子扫描图片</span>
				</div>
				<div id="preview0">
					<?{if $arrData.photo1 != ""}?>
						<img src="<?{$FileCallPath}?>b/<?{$arrData.photo1}?>" boder="1" onload="resizepic(this,600)">
					<?{/if}?>
				</div>	
		</td>
	</tr>
	<tr>
		<td width="10%">联系电话：</td>	
		<td width="40%"><input type="text" size=30 name="tel" value="<?{$arrData.tel}?>" /></td>
		<td class="gray">用户注册公司的联系电话</td>
	</tr>
	<tr>
		<td width="10%">联系手机：</td>	
		<td width="40%"><input type="text" size=30 name="mobile" value="<?{$arrData.mobile}?>" /></td>
		<td class="gray">用户注册公司的联系手机</td>
	</tr>
	<tr>
		<td width="10%">电子邮件：</td>	
		<td width="40%"><input type="text" size=30 name="email" value="<?{$arrData.email}?>" /></td>		
		<td class="gray">用户注册公司的联系电子邮件</td>
	</tr>
	<tr>
		<td width="10%">邮政编码：</td>	
		<td width="40%"><input type="text" size=30 name="postcode" value="<?{$arrData.postcode}?>" /></td>		
		<td class="gray">用户注册公司的邮政编码</td>
	</tr>
	<tr>
		<td width="10%">公司传真：</td>	
		<td width="40%"><input type="text" size=30 name="fax" value="<?{$arrData.fax}?>" /></td>
		<td class="gray">用户注册公司的公司传真</td>
	</tr>
	<tr>
		<td width="10%">联系&nbsp;&nbsp;QQ：</td>	
		<td width="40%"><input type="text" size=30 name="QQ" value="<?{$arrData.QQ}?>" /></td>
		<td class="gray">公司联系人的QQ</td>
	</tr>
	<tr>
		<td width="10%">公司地址：</td>
		<td width="40%"><input type="text" size=30 name="address" value="<?{$arrData.address}?>" /></td>
		<td class="gray">用户注册公司的具体地址</td>
	</tr>
	<tr>
		<td width="10%">公司网址：</td>
		<td width="40%"><input type="text" size=30 name="homepage" value="<?{$arrData.homepage}?>" /></td>
		<td class="gray">用户注册公司的网址</td>
	</tr>
	<tr>
		<td width="10%">提示问题</td>
		<td width="40%"><input type="text" size=30 name="question" value="<?{$arrData.question}?>" /></td>
		<td class="gray">用户找回注册信息所要回答的问题</td>
	</tr>
		<tr>
		<td width="10%">问题答案</td>
		<td width="40%"><input type="text" size=30 name="answer" value="<?{$arrData.answer}?>" /></td>
		<td class="gray">上述问题的答案</td>
	</tr>
	<tr>
		<td>发布时间：</td>
		<td>
			<input type="text" name="submit_date" value="<?{$arrData.submit_date}?>">
			<input TYPE="button" value="" onclick='popUpCalendar(this, form1.submit_date, dateformat,-1,-1,true)' style="background-image:url(../../plug-in/PopCalender/img/Button.gif);width:25px;height:17px;border:0px;padding:0px;">
		</td>
		<td><span class=gray>修改用户发布时间</span></td>
	</tr>
	<tr>
		<td>点击初始值：</td>
		<td><input maxLength=50 size=10 value="<?{$arrData.clicktimes}?>" name=clicktimes></td>
		<td><span class=gray>这功能是提供给管理员作弊用的</span></td>
	</tr>
	<tr>
		<td>通过审核：</td>	
		<td>
			<select name="pass">
			<option value="1" <?{if $arrData.pass == 1}?>selected=selected class="selected"<?{/if}?>>通过</option>
			<option value="0" <?{if $arrData.pass == 0}?>selected=selected class="selected"<?{/if}?>>未通过</option>	
			</select>
		</td>		
		<td class="gray">是否通过审核</td>
	</tr>
	<tr> 
		<td>&nbsp;</td>
	<td colspan="2">
		<input type="hidden" name="user_id" value="<?{$arrData.user_id}?>" />
		<input type="hidden" name="savefilename0" value="<?{$arrData.photo0}?>">
		<input type="hidden" name="savefilename1" value="<?{$arrData.photo1}?>">
		<input  type="submit" name="Submit" id="Submit" value="提 交"  class="mini" />
	</td>
	</tr>
</table>
</div>
</form>